package com.dup.jxlh.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dup.jxlh.admin.entities.model.Role;
import com.dup.jxlh.admin.entities.vo.PermVO;
import com.dup.jxlh.admin.entities.vo.RoleVO;
import com.dup.jxlh.api.entities.PaginationData;

import java.math.BigInteger;
import java.util.ArrayList;

public interface RoleService {
    Page<Role> getRoleList(PaginationData paginationData);

    Role getRole(BigInteger roleId);

    Boolean addRole(Role role);

    Boolean editRole(Role role);

    ArrayList<PermVO> getMainPerm();

    BigInteger[] getRolePermIds(BigInteger roleId);

    Boolean updateRolePerm(RoleVO roleVO);


}
